﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: StockItemEntity.cs
// 修改时间：2020-9-8 10:40:11
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：StockItem 的实体类.
	/// </summary>
	[Table("StockItem")]
	public partial class StockItemEntity
	{
		#region Properties
		private int? _itemID = 0;
		/// <summary>
		/// 项目ID(主键)
		/// </summary>
		[Column("ItemID",TypeName="int")]
		[Key]
		public int? ItemID
		{
			get {return _itemID;}
			set {_itemID = value;}
		}
		
		private int? _stockID = 0;
		/// <summary>
		/// 库存记录ID
		/// </summary>
		[Column("StockID",TypeName="int")]
		public int? StockID
		{
			get {return _stockID;}
			set {_stockID = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private System.String _property = string.Empty;
		/// <summary>
		/// 商品属性
		/// </summary>
		[Column("Property",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Property
		{
			get {return _property;}
			set {_property = value;}
		}
		
		private int? _amount = 0;
		/// <summary>
		/// 数量
		/// </summary>
		[Column("Amount",TypeName="int")]
		public int? Amount
		{
			get {return _amount;}
			set {_amount = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 价钱(成本价/售货价)
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		#endregion
	}
}
